﻿using Catel.Articles.Base.Data.Attributes;

namespace Catel.Articles._02___WPF_controls.Examples.TipOfTheDayWindow
{
    [Example("TipOfTheDayWindow", "Example of the TipOfTheDayWindow",
        LongDescription = @"The Tip of the Day window is a great way of showing the end-user some handy tips when they start your software. " + 
                           "For example, to learn about shortcuts, “hidden” features and more.\n\n" + 
                           "Press CTRL + F2 in the Tip of the Day window to edit the tips",
        SourceFileName = "/Examples/TipOfTheDayWindow/Code.txt",
        ImageUri = "/Examples/TipOfTheDayWindow/Screenshot.png",
        ClickHandlerName = "ShowExample")]
    public class Example
    {
        /// <summary>
        /// Shows the example.
        /// </summary>
        private static void ShowExample()
        {
            // Show window
            Windows.TipOfTheDayWindow tipOfTheDayWindow = new Windows.TipOfTheDayWindow();
            tipOfTheDayWindow.ShowDialog();
        }
    }
}
